javascript void(0) href

110

javascript void(0) href -

<!DOCTYPE html>
<html>
   <head>
      <title>Understanding JavaScript void(0)</title>
   </head>
   <body>
      <a href="javascript:void(0);" ondblclick="alert('Click it twice!')">Click me not once, but twice.</a>
   </body>
</html>

a href javascript void -

<a href="javascript:void(0)" onclick="myJsFunc();">Run JavaScript Code</a>
 Run code snippet

a href javascript void -

function doSomething() {
    //Some code
    return false;
}

Comments

Submit
0 Comments